
#include <anb/common/utils.h>

#include "server.h"
#include "utils.h"

#include "connection.h"

namespace anb { namespace net {

server::server(loop::ptr loop, dispatcher::ptr dispatcher) : server_base(loop), m_dispatcher(dispatcher) {
}

server::~server() {
}


void server::stop() {
	server_base::stop();
}

connection_base* server::create_connection(uv_tcp_t* tcp) {
	return new connection(get_loop(), tcp, m_dispatcher);
}

void server::connection_stopped(connection_base* connection) {
	server_base::connection_stopped(connection);

}

} }